DISCUSSION
The
ATSUSetTextHandleLocation function assigns it new text or updates existing text that is accessed by a handle. For uninitialized text layout objects,
ATSUSetTextHandleLocation assigns new text; for initialized text layout objects, it updates existing text that is accessed by a handle.
ATSUSetTextHandleLocation clears layout caches. If you want to assign or update text accessed by a pointer, call the function
ATSUSetTextPointerLocation.
If the user deletes, inserts, or moves text in a text layout object and the range of text covers the entire text buffer, you should
You can then call the function
ATSUDrawText to display the updated text.
Most functions that operate on text layout objects perform these operations on the range of text that you specify in the
iTextOffset and
iTextLength parameters. Typically, this is a subrange of the entire text buffer. If this range is shorter than the entire text buffer, the text layout object will scan the remaining text to get the full context for bidirectional processing and other information about the text.